<%@ taglib prefix="th" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/18
  Time: 10:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--<form action="/springsecurity/mineController/checkMessage" method="post">
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
        <input type="submit" value="提交">
    </form>--%>
   <%-- <form name="f" action="/springsecurity/mineController/checkMessage" method="post">
        <br/>
        用户名:
        <input type="text" name="username" placeholder="name"><br/>
        密码:
        <input type="password" name="password" placeholder="password"><br/>
        <input name="submit" type="submit" value="提交">
    </form>--%>

    <%--th 默认会带csrf--%>
    <form  th:action = "@{/mineController/checkMessage}">
        用户名:
        <input type="text" name="username" placeholder="name"><br/>
        密码:
        <input type="password" name="password" placeholder="password"><br/>
        <input id="remember_me" name="remember-me" type="checkbox" />
        <label for="remember_me" class="inline">Remember me</label>
        <input name="submit" type="submit" value="提交">
    </form>
<a href="/springsecurity/mineController/logout">退出退出</a>
</body>
</html>
